home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_215 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  862 b   |  35 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 1)
  3.    {
  4.       if(_root.even40 == 1)
  5.       {
  6.          _root.indicount = 100;
  7.          _root.indialogue = "It\'s bending.";
  8.          _root.sfx.gotoAndStop(3);
  9.          if(_root.bend_clicky >= 3)
  10.          {
  11.             _root.indialogue = "It\'s completely bent.";
  12.             i = 1;
  13.             while(i < 40)
  14.             {
  15.                if(_root.inven["box" + i]._currentframe == 15)
  16.                {
  17.                   _root.inven["box" + i].gotoAndStop(16);
  18.                }
  19.                i++;
  20.             }
  21.             gotoAndStop(16);
  22.          }
  23.          else
  24.          {
  25.             _root.bend_clicky = _root.bend_clicky + 1;
  26.          }
  27.       }
  28.       else
  29.       {
  30.          _root.indicount = 100;
  31.          _root.indialogue = "Why would I want to bend it straight?";
  32.       }
  33.    }
  34. }
  35.